import Main from '@/components/main'
export const fishingRouter = [
  {
    path: '/electronic_code',
    name: 'electronic_code',
    meta: {
      // icon: '_iconshangpinguanli',
      title: '电子码管理',
      showAlways: true,
      snMenu: 'electronic_code',
      sn: 'moms:globalsetting:redeemcodeview'
    },
    component: Main,
    children: [
      {
        path: 'electronic_list',
        name: 'electronic_list',
        meta: {
          title: '产品管理',
          snMenu: 'electronic_list',
          sn: 'moms:globalsetting:redeemcodeview'
        },
        component: () => import('@/view/fishing-manage/electronic-code/list.vue')
      },
      {
        path: 'electronic_detail',
        name: 'electronic_detail',
        meta: {
          title: '产品详情',
          snMenu: 'electronic_detail',
          hideInMenu: true,
          notCache: true,
          sn: 'moms:globalsetting:redeemcodeinfo'
        },
        component: () => import('@/view/fishing-manage/electronic-code/detail.vue')
      },
      {
        path: 'electronic_create',
        name: 'electronic_create',
        meta: {
          title: '添加产品',
          snMenu: 'electronic_create',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:redeemcodecreate'
        },
        component: () => import('@/view/fishing-manage/electronic-code/create.vue')
      },
      {
        path: 'electronic_list_detail',
        name: 'electronic_list_detail',
        meta: {
          title: '电子码详情',
          hideInMenu: true,
          notCache: true,
          snMenu: 'electronic_list_detail',
          sn: 'moms:globalsetting:redeemcodedetail'
        },
        component: () => import('@/view/fishing-manage/electronic-code/ele-detail.vue')
      }
    ]
  },
  {
    path: '/partners_manage',
    name: 'partners_manage',
    meta: {
      // icon: '_iconshangpinguanli',
      title: '合作商管理',
      showAlways: true,
      snMenu: 'partners_manage',
      sn: 'moms:globalsetting:partnerview|moms:globalsetting:partnerchannelview'
    },
    component: Main,
    children: [
      {
        path: 'cooperation_party_list',
        name: 'cooperation_party_list',
        meta: {
          title: '合作方管理',
          snMenu: 'cooperation_party_list',
          sn: 'moms:globalsetting:partnerview'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-party/list.vue')
      },
      {
        path: 'cooperation_party_detail',
        name: 'cooperation_party_detail',
        meta: {
          title: '合作方详情',
          snMenu: 'cooperation_party_detail',
          hideInMenu: true,
          sn: 'moms:globalsetting:partnerdetail'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-party/detail.vue')
      },
      {
        path: 'cooperation_party_create',
        name: 'cooperation_party_create',
        meta: {
          title: '添加合作方',
          snMenu: 'cooperation_party_create',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:partnercreate'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-party/create.vue')
      },
      {
        path: 'cooperation_party_edit',
        name: 'cooperation_party_edit',
        meta: {
          title: '编辑合作方',
          snMenu: 'cooperation_party_edit',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:partnerupdate'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-party/edit.vue')
      },
      {
        path: 'cooperation_channels_list',
        name: 'cooperation_channels_list',
        meta: {
          title: '合作渠道管理',
          snMenu: 'cooperation_channels_list',
          sn: 'moms:globalsetting:partnerchannelview'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-channels/list.vue')
      },
      {
        path: 'cooperation_channels_create',
        name: 'cooperation_channels_create',
        meta: {
          title: '添加合作渠道',
          snMenu: 'cooperation_channels_create',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:partnerchannelcreate'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-channels/create.vue')
      },
      {
        path: 'cooperation_channels_edit',
        name: 'cooperation_channels_edit',
        meta: {
          title: '编辑合作渠道',
          snMenu: 'cooperation_channels_edit',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:partnerchannelupdate'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-channels/edit.vue')
      },
      {
        path: 'cooperation_channels_detail',
        name: 'cooperation_channels_detail',
        meta: {
          title: '合作渠道详情',
          snMenu: 'cooperation_channels_detail',
          notCache: true,
          hideInMenu: true,
          sn: 'moms:globalsetting:partnerchanneldetail'
        },
        component: () => import('@/view/fishing-manage/partners-manage/cooperation-channels/detail.vue')
      }
    ]
  }
]
